<template>
    <div class="header">
        <div class="header-left">
            <div class="iconfont back-icon el-icon-arrow-left"></div>
        </div>
        <el-input suffix-icon="el-icon-search" placeholder="输入城市/景点/游玩主题" size="small" >
        </el-input>
        <div class="header-right">
            城市
            <span class="el-icon-caret-bottom arrow-icon"></span>
        </div>
    </div>
</template>

<script>
export default {
    name: 'HomeHeader'
}
</script>

<style lang="stylus"  scoped>\
@import '~styles/varibles.styl';
    // 1rem = html font-size = 50px
    .header
        display: flex
        line-height: .86rem
        background-color: $bgColor
        color: #fff
        .header-left
            width: .64rem
            float: left
            .back-icon
                text-align: center
                font-size: .5rem
                display: inline-block
                vertical-align: middle
        .header-input
            flex: 1
            height: .64rem
            line-height: .64rem
            margin-top: .12rem
            margin-bottom: .12rem
            background-color: #fff
            border-radius: .1rem
            color: #ccc
            padding-left: .2rem
        .header-right
            width: 1.24rem
            float: right
            text-align: center
            .arrow-icon
                font-size: .3rem
                margin-left: -.04rem
        
</style>


